<!DOCTYPE html>
<html>
  <head>

    <title>Layui</title>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="layui/css/layui.css">
    <!-- <script src="js/jquery-1.4.1.min.js" type="text/javascript"></script> -->
    <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
    <script src="layui/layui.js" charset="utf-8"></script>
  </head>
  

  <body >
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
      <legend>按钮主题</legend>
    </fieldset>
     
    <!-- <div class="layui-btn-container" id="content">
    </div> -->
    <div class="layui-elem-quote" style="margin-top: 30px;" id="content">
    </div>

  </body>

<script language="javascript" type="text/javascript">
  $(function () {
    function getQueryVariable(variable)
		{
       			var query = window.location.search.substring(1);
      			 var vars = query.split("&");
       			for (var i=0;i<vars.length;i++) {
               		var pair = vars[i].split("=");
               		if(pair[0] == variable){return pair[1];}
       			}
      			 return(false);
	 }


    var path =getQueryVariable("path");
    console.log(path);
    var path2=decodeURI(path);
    console.log(path2);

    var htmlobj = $.ajax({ url: path2, async: false });

    var v = htmlobj.responseText;
    var arrs = v.split("\r\n");
    for (var i = 0; i < arrs.length; i++) {
       //console.log(arrs[i]);
      $("#content").append("<p>"+arrs[i]+"</p><br>");
    
    }

})
</script>

</html>